//
//  RegisteredViewController.m
//  OCDome
//
//  Created by 李含文 on 2020/10/10.
//  Copyright © 2020 李含文. All rights reserved.
//

#import "RegisteredViewController.h"
#import "HWAlertManager.h"
#import "RegisteredTwoViewController.h"

@interface RegisteredViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btn;

@end

@implementation RegisteredViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self hw_switchNavColor:UIColor.redColor];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self hw_customBackButton];
    self.title = @"注册";
}


//- (BOOL)hw_navigationShouldPopOnBackButton {
////    __weak typeof(self) weakself = self;
////    [HWAlertManager hw_showAlert:@"温馨提示" message:@"是否放弃注册" actionTitles:@[@"放弃"] actionBlock:^(NSInteger index) {
////        [weakself.navigationController popViewControllerAnimated:YES];
////    }];
//    [self hw_popToViewControllerWithName:@"LoginViewController"];
//    return NO;
//}

- (IBAction)btnClick:(UIButton *)btn {
    RegisteredTwoViewController *vc = [RegisteredTwoViewController new];
    [self.navigationController pushViewController:vc animated:YES];
//    [btn hw_countdownWithTime:60 action:^{
//        [btn setTitle:@"获取验证码" forState:(UIControlStateNormal)];
//    }];
}

- (void)dealloc
{
    [self.btn hw_cancelTimer];
}
@end
